package com.ifsaid.im.service;

import com.ifsaid.im.entity.UserEntity;
import com.ifsaid.im.exception.UserException;

/**
 * @description: 环信 IM API
 * @author: Wang Chen Chen<932560435@qq.com>
 * @date: 2019/11/4 14:48
 */

public interface IEasemobImService {

    /**
     * @description: 刷新token
     * @date: 2019/11/4 14:49
     */
    void refreshToken();

    /**
     * @description: 注册用户
     * @date: 2019/11/4 14:52
     */
    UserEntity registered(UserEntity entity) throws UserException;

    /**
     * @description: 添加好友
     * @date: 2019/11/4 14:52
     */
    void addFriend(String myName, String friendName) throws UserException;

    /**
     * @description: 修改密码
     * @date: 2019/11/4 14:53
     */
    boolean changePassword(UserEntity entity);


}
